//
//  CommonViewController.h
//  tcpoctest
//
//  Created by gump on 10/22/12.
//  Copyright (c) 2012 gump. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FXLabel.h"

@interface CommonViewController : UIViewController

@property (nonatomic)                   int                 vctype;
@property (nonatomic,strong)            FXLabel             *mtitle;
@property (nonatomic,strong)            UINavigationBar     *navBar;
@property (nonatomic,strong)            UINavigationItem    *navItem;

-(void)initUI;
-(void)IsModifySucess:(bool)bsuccess;
-(void)createTitle;
-(void)UILogicTick;
-(void)viewWillHide;
-(void)viewWillShow;
-(void)refreshView;
-(void)WarnningNetBreak;
-(void)WarnningServerBreak;
-(void)UICustomTick;
-(void)cleanUI;

- (UIBarButtonItem *)createBarBackButtonItemWithTitle:(NSString *)title target:(id)target action:(SEL)action;

- (UIBarButtonItem *)createBarButtonItemWithTitle:(NSString *)title target:(id)target action:(SEL)action;
- (UIBarButtonItem *)createBarButtonItemWithImage:(UIImage *)image target:(id)target action:(SEL)action;


@end
